class PQMINWT{E, WTP < $NUMBER{WTP}} < $IS_LT{PQMINWT{E,WTP}}, $STR
****
A wrapper class for priority queue elements in which a weight (which is different from the element itself) is used In addition, the comparison function for the weight is reversed so that smaller weights are considered larger. Thus, minimum elements will be removed from the priority queue first


Ancestors
$STR $IS_LT{_} $IS_EQ



Public


Readable Attributes
attr element: E;
attr weight:WTP;

Writable Attributes
attr element: E;
attr weight:WTP;

Features
create(node:E,weight: WTP): SAME
is_eq(e: SAME):BOOL
is_eq(arg: $OB): BOOL .. Included as is_eq
is_lt(e: SAME):BOOL
str: STR
wtstr(w:WTP): STR

The Sather Home Page